package com.ruoyi.business.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.FirstPagePictureMapper;
import com.ruoyi.business.domain.FirstPagePicture;
import com.ruoyi.business.service.IFirstPagePictureService;

/**
 * 首页轮播图图片维护Service业务层处理
 * 
 * @author liwenjing
 * @date 2021-05-16
 */
@Service
public class FirstPagePictureServiceImpl implements IFirstPagePictureService 
{
    @Autowired
    private FirstPagePictureMapper firstPagePictureMapper;

    /**
     * 查询首页轮播图图片维护
     * 
     * @param id 首页轮播图图片维护ID
     * @return 首页轮播图图片维护
     */
    @Override
    public FirstPagePicture selectFirstPagePictureById(Long id)
    {
        return firstPagePictureMapper.selectFirstPagePictureById(id);
    }

    /**
     * 查询首页轮播图图片维护列表
     * 
     * @param firstPagePicture 首页轮播图图片维护
     * @return 首页轮播图图片维护
     */
    @Override
    public List<FirstPagePicture> selectFirstPagePictureList(FirstPagePicture firstPagePicture)
    {
        return firstPagePictureMapper.selectFirstPagePictureList(firstPagePicture);
    }

    /**
     * 新增首页轮播图图片维护
     * 
     * @param firstPagePicture 首页轮播图图片维护
     * @return 结果
     */
    @Override
    public int insertFirstPagePicture(FirstPagePicture firstPagePicture)
    {
        return firstPagePictureMapper.insertFirstPagePicture(firstPagePicture);
    }

    /**
     * 修改首页轮播图图片维护
     * 
     * @param firstPagePicture 首页轮播图图片维护
     * @return 结果
     */
    @Override
    public int updateFirstPagePicture(FirstPagePicture firstPagePicture)
    {
        return firstPagePictureMapper.updateFirstPagePicture(firstPagePicture);
    }

    /**
     * 批量删除首页轮播图图片维护
     * 
     * @param ids 需要删除的首页轮播图图片维护ID
     * @return 结果
     */
    @Override
    public int deleteFirstPagePictureByIds(Long[] ids)
    {
        return firstPagePictureMapper.deleteFirstPagePictureByIds(ids);
    }

    /**
     * 删除首页轮播图图片维护信息
     * 
     * @param id 首页轮播图图片维护ID
     * @return 结果
     */
    @Override
    public int deleteFirstPagePictureById(Long id)
    {
        return firstPagePictureMapper.deleteFirstPagePictureById(id);
    }
}
